/************************************************************************************
*
*                           HANGZHOU    DIANZI    UNIVERSITY
*
*                    The city of HangZhou in ZheJiang province of china
*
*                 (c) Copyright 2012, HANGZHOU DIANZI UNIVERSITY, HangZhou
*
*                                  All Rights Reserved
*
*   Filename    :    bsp.h
*
*   Programer(s):    xingzhan 
*
*   Description :    The Drives of Development Board
*
*   Modify Records:
*   Programer(s)           Data           Content           Version
*   xingzhan             2012/6/7      DataBase building      1.0  
*
************************************************************************************/ 

#ifndef __BSP_H__
#define __BSP_H__

#include "includes.h"

#define LED1_ON()                  GPIOE -> ODR &= ~(1<<2)  
#define LED1_OFF()                 GPIOE -> ODR |=   1<<2
#define LED2_ON()                  GPIOE -> ODR &= ~(1<<3)  
#define LED2_OFF()                 GPIOE -> ODR |=   1<<3

void BSP_Init(void);
void JTAG_Set(u8 mode);
void LED_Init(void);       
void NVIC_Configuration(void);
void TIM2_ClkInit(void);
void USART1_Init(void);
void USART1_SendData(u8 data);
u8 USART1_ReadData(void);

void CPU_IntDis(void);
void CPU_IntEn(void);

#endif

